package com.njworkorder.VO;

import lombok.Data;

@Data
public class PMAVo {
    private double januaryValue;
    private double februaryValue;
    private double marchValue;
    private double aprilValue;
    private double mayValue;
    private double juneValue;
    private double julyValue;
    private double augustValue;
    private double septemberValue;
    private double octoberValue;
    private double novemberValue;
    private double decemberValue;


    public double getValueByMonth(int month) {
        return switch (month) {
            case 1 -> januaryValue;
            case 2 -> februaryValue;
            case 3 -> marchValue;
            case 4 -> aprilValue;
            case 5 -> mayValue;
            case 6 -> juneValue;
            case 7 -> julyValue;
            case 8 -> augustValue;
            case 9 -> septemberValue;
            case 10 -> octoberValue;
            case 11 -> novemberValue;
            case 12 -> decemberValue;
            default -> 0.0;
        };
    }
}
